package entities;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name = "BETALING")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Betaling
{
	private int id;
	private BigDecimal prijs;
	private Date betaald;
	
	// Constructors
	
	/**
	 * Constructor voor Hibernate
	 */
	protected Betaling()
	{
		
	}
	public Betaling(BigDecimal prijs)
	{
		this.prijs = prijs;
	}
	
	// Getters en Setters
	
	@Id
	@GeneratedValue(strategy = GenerationType.TABLE)
	@Column(name = "id")
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	@Column(name = "prijs")
	public BigDecimal getPrijs()
	{
		return prijs;
	}
	public void setPrijs(BigDecimal prijs)
	{
		this.prijs = prijs;
	}
	@Column(name = "betaald")
	public Date getBetaald()
	{
		return betaald;
	}
	public void setBetaald(Date betaald)
	{
		this.betaald = betaald;
	}
	
	// Methoden
}
